package cn.exrick.xboot.base.service

import cn.exrick.xboot.base.entity.LawAndRegulations
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import com.baomidou.mybatisplus.extension.service.IService

/**
 * 法律法规管理接口
 * @author Fei
 */
interface ILawAndRegulationsService : IService<LawAndRegulations?> {


    /**
     * 添加或者更新事故案例
     */
    fun createOrUpdateLawAndRegulations(lawAndRegulations: LawAndRegulations): Result<Any?>?


    /**
     * 获取法鲁法规详情
     */
    fun getLawAndRegulationDetail(id: String?): Result<LawAndRegulations?>?

    /**
     * 移除事故案例
     */
    fun removeLawAndRegulations(ids: Array<out String>): Result<Any?>?


    /**
     * 获取事故案例列表
     */
    fun getLawAndRegulationsList(pageVo: PageVo): Result<MutableMap<String, Any?>>?

}